import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/public/HomeApp.vue'
import echarts from '../views/public/echarts.vue'

Vue.use(VueRouter)

const routes = [
  /* ---------------------------毕然路由---------------------------------- */
  {
    path:'/',
    name:'login',
    component: () => import('../views/public/Login.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/echarts',
    name: 'echarts',
    component: echarts
  },
  {
    path: '/fxlx',
    name: 'fxlx',
    component: () => import('../views/bhrcommponents/mapfx.vue')
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('../views/bhrcommponents/map.vue')
  },

  {
    path: '/csxtx',
    name: 'csxtx',
    component: () => import('../views/bhrcommponents/es6new.vue')
  },

  {
    path: '/xianmu',
    name: 'xianmu',
    component: () => import('../views/bhrcommponents/projectis')
  },

  {
    path: '/Iframe',
    name: 'Iframe',
    component: () => import('../views/bhrcommponents/Iframe')
  }


  // ****************************  新路由 *********************************
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
